package com.jsy.mini12306.ticketsales.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jsy.mini12306.common.entity.Train;

import java.util.List;

/**
 * 车次（图中的路径）(Train)表服务接口
 *
 * @author: SongyangJi
 * @since: 2021-09-01 12:55:07
 * @description:
 */

public interface TrainService extends IService<Train> {

    List<Train> listAllTrains();

    Train queryTrainById(int trainId);

    Train queryTrainByTrainName(String name);

}
